package com.d0316;

public class SecondException {
    public static void main(String[] args) {
        try {
            int x = 100;
            int y = 10;
            System.out.println("x/y=" + x / y);
            System.out.println("world");
        }catch(NullPointerException ex){
            System.out.println("发生了空指针异常");
        }catch(Exception e){
            System.out.println("发生了异常");
        }
        System.out.println("程序运行结束");
    }
}
